# from rest_framework.response import Response
# from rest_framework.viewsets import ModelViewSet
#
# from apps.spit.models import User
# from apps.spit.serializer.user import UserSerializer
#
#
# class UserViewSet(ModelViewSet):
#     queryset = User.objects.all()
#     serializer_class = UserSerializer
#
#     # 因为可以匿名发表吐槽,因此禁用drf帮我们做的认证
#     def perform_authentication(self, request):
#         pass
#
#     def get_queryset(self):
#
#         id = self.request.user.id
#         return User.objects.get(id=id)
#
